package com.analyse.stock.form;

import com.analyse.stock.config.MailConfig;
import lombok.Data;

import java.io.Serializable;

@Data
public class MailInfoForm implements Serializable {
    //发送地址
    private MailConfig config;

    //邮件主题
    private String subject;

    //邮件内容text
    private String contentText;

    //邮件内容html
    private String contentHtml;

    //附件地址
    private String fileUrl;
    //附件名称
    private String fileName;

    public static MailInfoForm me(MailConfig config,String subject,String contentText){
        MailInfoForm form = new MailInfoForm();
        form.setConfig(config);
        form.setSubject(subject);
        form.setContentText(contentText);
        return form;
    }
}


